package cn.yan.luowowo.repository;

import cn.yan.luowowo.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserInfoRepository extends MongoRepository<UserInfo,String>{

    /**
     * 根据手机号码查询
     * @param phone
     * @return
     */
    UserInfo findByPhone(String phone);

    UserInfo findByPhoneAndPassword(String phone, String password);
}
